package cn.kt.controller;

import cn.kt.service.IndexMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    @Autowired
    IndexMenuService indexMenuService;

    @RequestMapping("/index")
    public String index(Model model){
        //System.out.println(indexMenuService.list());
        model.addAttribute("menuList",indexMenuService.list());
        return "admin/index/index";
    }
}
